<!DOCTYPE html>
<style>
input::-webkit-textfield-decoration-container {
  writing-mode: vertical-rl;
}
</style>
<input type=number placeholder="foo">
<input type=number value="123456">
<script>
document.querySelectorAll('input')[1].focus();
</script>
